Generating GraphViz DOT Script in DXL

Is it possible to use DXL to generate a textual description of the modules and links in a DOORS database? It would be very nice to be able to use this capability to generate a file which could be used by the free and open source graph generating tool Graphviz (http://www.graphviz.org/) to generate maps of the links.
Has there been any work in this area? Does DXL have the capability to traverse links and output what is linked where?
SystemAdmin - Wed Jun 20 11:31:56 EDT 2012

Re: Generating GraphViz DOT Script in DXL
llandale - Wed Jun 20 14:51:13 EDT 2012

Are you asking can DXL following links all over the database in order to determine which modules are linked to which other modules? Well of course it can.

For each module, for each outgoing link keep track of the tripple SourceMod-LinkMod-TargetMod, use the LinkMod to determine a "verb", and present: SourceMod verb TargetMod;
e.g. SubSys1 "Satisfies" SystemSpec

-Louie

Re: Generating GraphViz DOT Script in DXL
SystemAdmin - Wed Jun 20 14:58:45 EDT 2012

About 8 years ago I generated such a beast by passing a text file to visio (they took away this ability after visio 2002). Two or three years ago Jeremy Dick previously of Telelogic and now of Traceline introduced me to graphviz which he was using for some unrelated purpose, and I converted the visio dxl into graphviz dxl within a day or so. So yes it is fairly easy and very powerful. It would be even more powerful if the svg format was readily used in companies (Internet Explorer does not support it)

When I am bored I play with doors visualisation - amazing what you can do. I have a website that I have half finished - where you could download the tool, assuming I told people where it is!! I will attempt to finish my website in the next couple of weeks and make it available then. Putting the prototype of the visualiser on the web site defeated my energy levels especially using the right security settings. Here's a picture of the free tool assuming anyone's interested.

Regards,

Richard
Attachments

attachment_14846587_webPageImage.pdf

Re: Generating GraphViz DOT Script in DXL
SystemAdmin - Wed Jun 20 15:17:26 EDT 2012

Interesting stuff - I figured it must be possible. I'm a DXL beginner though, so wouldn't know where to start. I'm just curious really.

As for that tool - I would be very interested in seeing the results. Thanks for sharing!

Re: Generating GraphViz DOT Script in DXL
Mathias Mamsch - Wed Jun 20 17:35:18 EDT 2012

SystemAdmin - Wed Jun 20 15:17:26 EDT 2012
Interesting stuff - I figured it must be possible. I'm a DXL beginner though, so wouldn't know where to start. I'm just curious really.

As for that tool - I would be very interested in seeing the results. Thanks for sharing!

The problem is, that iterating the links of a database can take hours to complete, depending on the size of the project you want to evaluate. Therefore I would not suggest you write a DXL script that will directly dump information to a graphvis file, because then you have to nail the layout right away. If you want to have another layout or experiment with graphvis you would need to reiterate the links.

Therefore my suggestion would be to make two tools (which can be combined later), one for just dumping all the links, which is pretty easy:
 

... see attached file dumpLinksExample.dxl ...

 


Then once you have all the links dumped to a file (you can dump information about the objects too), you can calculate statistics on it. I attached an example file, that shows how to read the links from the file back to an array, and make statistics on the array, e.g. count source/target module pairs and the number of links that are between them. You can do this in any language, I show a way of how to do that in DXL.

 

 

 

... see attached file linkStatistics.dxl ...



Well and from there finally you can generate your dot file. To draw a picture of the modules that link to each other you would want something like that



 

 

 

 

ModuleA -> ModuleB
ModuleB -> ModuleC
ModuleD -> ModuleC



which you can now enrich with whatever additional information you like, e.g. the link module that is used or the number of links, or the number of requirements in each module, etc. But that really depends on your use cases.

Hope that helps you to start. Best regards, Mathias



 

 

 


Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS

 


Attachments

attachment_14846651_linkDump.zip

Re: Generating GraphViz DOT Script in DXL
SystemAdmin - Wed Jun 20 19:55:05 EDT 2012

SystemAdmin - Wed Jun 20 14:58:45 EDT 2012
About 8 years ago I generated such a beast by passing a text file to visio (they took away this ability after visio 2002). Two or three years ago Jeremy Dick previously of Telelogic and now of Traceline introduced me to graphviz which he was using for some unrelated purpose, and I converted the visio dxl into graphviz dxl within a day or so. So yes it is fairly easy and very powerful. It would be even more powerful if the svg format was readily used in companies (Internet Explorer does not support it)

When I am bored I play with doors visualisation - amazing what you can do. I have a website that I have half finished - where you could download the tool, assuming I told people where it is!! I will attempt to finish my website in the next couple of weeks and make it available then. Putting the prototype of the visualiser on the web site defeated my energy levels especially using the right security settings. Here's a picture of the free tool assuming anyone's interested.

Regards,

Richard

I also thought of Jeremy's work in this area with his DOORS TraceLine add-on product - it's worth having a look at http://www.integrate.biz/traceline/

But lets face it - DOORS should have been supporting interactive graphical views of Project, Module, Link, Object and Attribute schemas 10 years ago. I wait to see what the "DOORS Next Generation" product might offer in this space - should I hold my breath?


Paul Miller
Melbourne, Australia

Re: Generating GraphViz DOT Script in DXL
OurGuest - Thu Jun 21 06:42:37 EDT 2012

SystemAdmin - Wed Jun 20 19:55:05 EDT 2012
I also thought of Jeremy's work in this area with his DOORS TraceLine add-on product - it's worth having a look at http://www.integrate.biz/traceline/

But lets face it - DOORS should have been supporting interactive graphical views of Project, Module, Link, Object and Attribute schemas 10 years ago. I wait to see what the "DOORS Next Generation" product might offer in this space - should I hold my breath?


Paul Miller
Melbourne, Australia

With IBM depreciating the value of help files how can you possible believe that they will improve the users life in other areas?

Re: Generating GraphViz DOT Script in DXL
SystemAdmin - Thu Jun 21 11:32:52 EDT 2012

OurGuest - Thu Jun 21 06:42:37 EDT 2012
With IBM depreciating the value of help files how can you possible believe that they will improve the users life in other areas?

Hi,

This has already been developped in the context of Requirements Management Framework addins ... Interactive usage of Graphviz allowing to display interactive tracability graphs in DOORS with operations based on graphic views (modules,objects,model) ...

I developped also some less sophisticated scripts outside of RMF to vizualize graphs

Luc
Attachments

attachment_14847086_rmf_explorer.JPG

Re: Generating GraphViz DOT Script in DXL
SystemAdmin - Thu Jun 21 11:37:37 EDT 2012

OurGuest - Thu Jun 21 06:42:37 EDT 2012
With IBM depreciating the value of help files how can you possible believe that they will improve the users life in other areas?

As soon as it moves to a proper relational database server structure, I think a lot of problems will be resolved, and more third party features will be available.
I can't wait that long though.

Re: Generating GraphViz DOT Script in DXL
SystemAdmin - Thu Jun 21 11:38:27 EDT 2012

Mathias Mamsch - Wed Jun 20 17:35:18 EDT 2012

The problem is, that iterating the links of a database can take hours to complete, depending on the size of the project you want to evaluate. Therefore I would not suggest you write a DXL script that will directly dump information to a graphvis file, because then you have to nail the layout right away. If you want to have another layout or experiment with graphvis you would need to reiterate the links.

Therefore my suggestion would be to make two tools (which can be combined later), one for just dumping all the links, which is pretty easy:
 

... see attached file dumpLinksExample.dxl ...

 


Then once you have all the links dumped to a file (you can dump information about the objects too), you can calculate statistics on it. I attached an example file, that shows how to read the links from the file back to an array, and make statistics on the array, e.g. count source/target module pairs and the number of links that are between them. You can do this in any language, I show a way of how to do that in DXL.

 

 

 

... see attached file linkStatistics.dxl ...



Well and from there finally you can generate your dot file. To draw a picture of the modules that link to each other you would want something like that



 

 

 

 

ModuleA -> ModuleB
ModuleB -> ModuleC
ModuleD -> ModuleC



which you can now enrich with whatever additional information you like, e.g. the link module that is used or the number of links, or the number of requirements in each module, etc. But that really depends on your use cases.

Hope that helps you to start. Best regards, Mathias



 

 

 


Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS

 

That's great, I was able to generate something good with that. I will have to work on it some more in my spare time, but thank you!

Re: Generating GraphViz DOT Script in DXL
SystemAdmin - Thu Jun 21 11:46:41 EDT 2012

SystemAdmin - Thu Jun 21 11:32:52 EDT 2012
Hi,

This has already been developped in the context of Requirements Management Framework addins ... Interactive usage of Graphviz allowing to display interactive tracability graphs in DOORS with operations based on graphic views (modules,objects,model) ...

I developped also some less sophisticated scripts outside of RMF to vizualize graphs

Luc

That looks very interesting. Could you provide a link to that addon? I searched the IBM product page and strangely enough couldn't find it.

Re: Generating GraphViz DOT Script in DXL
llandale - Thu Jun 21 12:57:44 EDT 2012

You may also eschew looking at all the links and decide instead to find all the link modules and map based on the existence of link-sets therein. You may also want to find all the LinkSetPairings (LinkModuleDescriptors in DXL) in all the folders. This should produce a "should" mapping, even if there are not any links yes (e.g. from the new Test module to the SubSys spec).

-Louie

Re: Generating GraphViz DOT Script in DXL
SystemAdmin - Fri Jun 22 08:21:11 EDT 2012

SystemAdmin - Thu Jun 21 11:46:41 EDT 2012
That looks very interesting. Could you provide a link to that addon? I searched the IBM product page and strangely enough couldn't find it.

Hi,

But it is a licensed addon ...

You can find some information here:
http://www-01.ibm.com/support/docview.wss?uid=swg24032745

With some DXL work you may extract information from DOORS and generate a dot file for Graphviz. In any case you have to filter data if you want readable graphic views.

I used that to generate PDF and also interactive HTML files, with the html and map Graphviz generation you may have a clickable display that can be used to open DOORS data.
Attachments

attachment_14847487_example.zip

Re: Generating GraphViz DOT Script in DXL
adevicq - Tue Jun 26 06:08:41 EDT 2012

llandale - Thu Jun 21 12:57:44 EDT 2012
You may also eschew looking at all the links and decide instead to find all the link modules and map based on the existence of link-sets therein. You may also want to find all the LinkSetPairings (LinkModuleDescriptors in DXL) in all the folders. This should produce a "should" mapping, even if there are not any links yes (e.g. from the new Test module to the SubSys spec).

-Louie

All,
You can find attached a first attempt of a (simple) graph generator for GraphViz.
The graph displays the linksets defined in the current folder/project and its children.

Alain
Attachments

attachment_14848576_genLinksetGraph.dxl

Re: Generating GraphViz DOT Script in DXL
adevicq - Tue Jun 26 06:31:15 EDT 2012

adevicq - Tue Jun 26 06:08:41 EDT 2012
All,
You can find attached a first attempt of a (simple) graph generator for GraphViz.
The graph displays the linksets defined in the current folder/project and its children.

Alain

removed a bug...
Attachments

attachment_14848583_genLinksetGraph.dxl

Re: Generating GraphViz DOT Script in DXL
SystemAdmin - Tue Jun 26 11:13:47 EDT 2012

adevicq - Tue Jun 26 06:31:15 EDT 2012
removed a bug...

Hello,

when running the getLinksetGraph.dxl what is the trick to view the results in a readable format; meaning enlarging the view. I tried to modifying the "size" with limited success. Thank you.

-Jim

Re: Generating GraphViz DOT Script in DXL
adevicq - Tue Jun 26 11:49:31 EDT 2012

SystemAdmin - Tue Jun 26 11:13:47 EDT 2012
Hello,

when running the getLinksetGraph.dxl what is the trick to view the results in a readable format; meaning enlarging the view. I tried to modifying the "size" with limited success. Thank you.

-Jim

it seems that if you delete the line 'size="XX,XX"' it works better for very big diagrams...
alain

Re: Generating GraphViz DOT Script in DXL
SystemAdmin - Fri Jun 29 10:33:33 EDT 2012

A link to my website, where you can download my spin on doors with graphviz. The website is driving me around the bend, but the downloads should work ok!
http://www.chalford.net/Downloads.aspx

Re: Generating GraphViz DOT Script in DXL
adevicq - Mon Jul 02 09:07:33 EDT 2012

SystemAdmin - Fri Jun 29 10:33:33 EDT 2012
A link to my website, where you can download my spin on doors with graphviz. The website is driving me around the bend, but the downloads should work ok!
http://www.chalford.net/Downloads.aspx

Hi,

I have executed you installer and I don't see anything new in PSPad (no new menu as shown on your site).
FYI I am on W7...
Is there anything I can do?
Regards,
Alain

Re: Generating GraphViz DOT Script in DXL
SystemAdmin - Wed Jul 04 12:16:39 EDT 2012

adevicq - Mon Jul 02 09:07:33 EDT 2012
Hi,

I have executed you installer and I don't see anything new in PSPad (no new menu as shown on your site).
FYI I am on W7...
Is there anything I can do?
Regards,
Alain

It worked well in rehersals. i.e. on my machine, buit that can hardly be considered a massive test. I'll exercise thte tool a bit more.

The pspad addin, contains a stable pspad variant with the dxl addin which allows you to interpret the errors and return them to the log window and to pass the current file as an <#include> wrappered file to the clipboard.

Whilst wrappering this all up I thought I'd play around with self extracting zip files and create an autohotkey generated script file for automatically installing the addin to an existing version of pspad.

The tool also checks that you have DOORS on your machine and links to the relevant dxl help file in the install directory. such that you can use it within pspad.

The tool does not install if you do not have doors on your machine, this may be a over the top.

I'll have a look at the install again with a view to simplifying it rather than seeing what can and can't be done. I suspect it may be failing silently for some reason, possibly because your machine does not allow unsigned exes to run.

If you have a specific error message then please let me know.
You can send me a personal email through my website.

The pspad addin can be built with a few files and some manual tweaking I may add a method to do this as an alternative on my website

Re: Generating GraphViz DOT Script in DXL
adevicq - Wed Jul 04 12:24:03 EDT 2012

SystemAdmin - Wed Jul 04 12:16:39 EDT 2012
It worked well in rehersals. i.e. on my machine, buit that can hardly be considered a massive test. I'll exercise thte tool a bit more.

The pspad addin, contains a stable pspad variant with the dxl addin which allows you to interpret the errors and return them to the log window and to pass the current file as an <#include> wrappered file to the clipboard.

Whilst wrappering this all up I thought I'd play around with self extracting zip files and create an autohotkey generated script file for automatically installing the addin to an existing version of pspad.

The tool also checks that you have DOORS on your machine and links to the relevant dxl help file in the install directory. such that you can use it within pspad.

The tool does not install if you do not have doors on your machine, this may be a over the top.

I'll have a look at the install again with a view to simplifying it rather than seeing what can and can't be done. I suspect it may be failing silently for some reason, possibly because your machine does not allow unsigned exes to run.

If you have a specific error message then please let me know.
You can send me a personal email through my website.

The pspad addin can be built with a few files and some manual tweaking I may add a method to do this as an alternative on my website

OK.
One question: How do you check that DOORS is installed on the machine? Remember that the registry keys are different on Windows 7. Maybe there is a possible issue here...
FYI I have no message when I run the installer.

Regards,
Alain

Re: Generating GraphViz DOT Script in DXL
SystemAdmin - Thu Jul 05 07:50:34 EDT 2012

adevicq - Wed Jul 04 12:24:03 EDT 2012
OK.
One question: How do you check that DOORS is installed on the machine? Remember that the registry keys are different on Windows 7. Maybe there is a possible issue here...
FYI I have no message when I run the installer.

Regards,
Alain

I tested the tools on another machine and seemed to have problems with the current directory for some bizarre reason. I have changed both tools on my website to cope with this. They should hopefully behave as intended. Note I also had an issue with the autohotkey com library I use to return the errors from DOORS meaning that the errors were not returned properly to the pspad log window, I think its being blocked, which is a bit of a bind as this is the major benefit of using the plugin.
I'll think of an alternative this weekend as although these are free tools I want them to work for at least 99% of people. I have tested on DOORS 9-2 and DOORS 9-3 on Xp and Windows 7. The pspad plugin is not returning the errors correctly on the windows 7 machine. The linksetviewer plugin installed everything, but sometimes created a shortcut to the temporary install area not where you chose to install the plugin. You will need to download the tools again

Re: Generating GraphViz DOT Script in DXL
adevicq - Mon Jul 09 16:37:19 EDT 2012

SystemAdmin - Thu Jul 05 07:50:34 EDT 2012
I tested the tools on another machine and seemed to have problems with the current directory for some bizarre reason. I have changed both tools on my website to cope with this. They should hopefully behave as intended. Note I also had an issue with the autohotkey com library I use to return the errors from DOORS meaning that the errors were not returned properly to the pspad log window, I think its being blocked, which is a bit of a bind as this is the major benefit of using the plugin.
I'll think of an alternative this weekend as although these are free tools I want them to work for at least 99% of people. I have tested on DOORS 9-2 and DOORS 9-3 on Xp and Windows 7. The pspad plugin is not returning the errors correctly on the windows 7 machine. The linksetviewer plugin installed everything, but sometimes created a shortcut to the temporary install area not where you chose to install the plugin. You will need to download the tools again

Hi,
I made the setup manually for the DXL "compiler" and DXL returns the errors as expected.
The only thing I do not have is your "script" menu...

Alain

Re: Generating GraphViz DOT Script in DXL
SystemAdmin - Tue Jul 10 06:42:35 EDT 2012

adevicq - Mon Jul 09 16:37:19 EDT 2012
Hi,
I made the setup manually for the DXL "compiler" and DXL returns the errors as expected.
The only thing I do not have is your "script" menu...

Alain

I suggest you download the zip file (see my other thread) and simply unzip it somwhere. This should give you the open include file and the send current file in #include to clipboard scripts.

If you use pspad for something else then you need to copy the dxl.vbs file to the \PSPad editor\Script\VBScript folder to get the script functionality. You should get the dxl menu as shown in the screenshot.

Regards,

Richard
Attachments

attachment_14853843_pspad.jpg

Re: Generating GraphViz DOT Script in DXL
SystemAdmin - Mon Oct 01 13:17:33 EDT 2012

adevicq - Tue Jun 26 06:31:15 EDT 2012
removed a bug...

Hi, I'm finally getting back to checking this out.

I tried the script, but first I had to comment out the bit asking if I have GraphViz installed, and the last line where it runs GraphViz, because I want to take the generated file and run it on a different machine.

Where is the file saved? I ran the script (Tools > Edit DXL > Load > Run) from the root of the project, and it output what looks like all the folders in the project. The output didn't show anything that looked like GraphViz - is that correct?

Then I searched for any .gv files on the machine, but there were none.

I thought maybe the temp file would be deleted after the run, so I set the filename to always be DOORS_Graphviz.gv. But after running, I still couldn't find the output file.

Re: Generating GraphViz DOT Script in DXL
SystemAdmin - Mon Oct 01 13:31:36 EDT 2012

SystemAdmin - Fri Jun 29 10:33:33 EDT 2012
A link to my website, where you can download my spin on doors with graphviz. The website is driving me around the bend, but the downloads should work ok!
http://www.chalford.net/Downloads.aspx

Do I have to run this with PSPad, or can I just run it from within the DOORS DXL Editor?

Re: Generating GraphViz DOT Script in DXL
Peter_Albert - Tue Oct 02 06:00:34 EDT 2012

SystemAdmin - Mon Oct 01 13:17:33 EDT 2012
Hi, I'm finally getting back to checking this out.

I tried the script, but first I had to comment out the bit asking if I have GraphViz installed, and the last line where it runs GraphViz, because I want to take the generated file and run it on a different machine.

Where is the file saved? I ran the script (Tools > Edit DXL > Load > Run) from the root of the project, and it output what looks like all the folders in the project. The output didn't show anything that looked like GraphViz - is that correct?

Then I searched for any .gv files on the machine, but there were none.

I thought maybe the temp file would be deleted after the run, so I set the filename to always be DOORS_Graphviz.gv. But after running, I still couldn't find the output file.

> Where is the file saved?

sFileName = tempFileName ".gv"

which on my PC translates to something like C:\DOCUME~1\Albert\LOCALS~1\Temp\DP9.gv.

> Then I searched for any .gv files on the machine, but there were none
I assume that Windows search does not search the Temp folder, that's why you did not find the file.

> I set the filename to always be DOORS_Graphviz.gv. But after running, I still couldn't find the output file
If you didn't specify the complete path then the file could end up anywhere (I don't know where the default location for output files without complete path is actually defined). If you specify the complete path, you have to escape the backslashes like in

sFileName = "C:\\Documents and Settings\\Albert\\Desktop\\DOORS_Graphviz.gv"

 


>output what looks like all the folders in the project. The output didn't show anything that looked like GraphViz

Are you using linkeset pairings? The script only analyses the linkset pairings, not the actual links in the Modules. If you use the default link Module all the time, then you only get the module and folder list

Regards,

Peter

 

Re: Generating GraphViz DOT Script in DXL
SystemAdmin - Tue Oct 02 12:33:15 EDT 2012

Peter_Albert - Tue Oct 02 06:00:34 EDT 2012

> Where is the file saved?

sFileName = tempFileName ".gv"

which on my PC translates to something like C:\DOCUME~1\Albert\LOCALS~1\Temp\DP9.gv.

> Then I searched for any .gv files on the machine, but there were none
I assume that Windows search does not search the Temp folder, that's why you did not find the file.

> I set the filename to always be DOORS_Graphviz.gv. But after running, I still couldn't find the output file
If you didn't specify the complete path then the file could end up anywhere (I don't know where the default location for output files without complete path is actually defined). If you specify the complete path, you have to escape the backslashes like in

sFileName = "C:\\Documents and Settings\\Albert\\Desktop\\DOORS_Graphviz.gv"

 


>output what looks like all the folders in the project. The output didn't show anything that looked like GraphViz

Are you using linkeset pairings? The script only analyses the linkset pairings, not the actual links in the Modules. If you use the default link Module all the time, then you only get the module and folder list

Regards,

Peter

 

Peter,
Thank you for your informative reply!

I have DOORS running on a Windows Server 2008 machine, so the paths are different. I couldn't find a Temp folder anywhere. The reason we're running it like this is because it's the only way to allow people in different offices to access the system. The database won't work over a WAN, only over a LAN, so my colleagues in different offices have to log in via Remote Desktop Access. That's a different thread though...

Anyway, I set the path to a specific location as you suggest, escaping the backslashes, and it works fine. It generates a nice GV file, which renders to a very complex digraph!

It turns out that the DXL output window does not show all the content that goes into the saved file. The saved GV file contains all the correct syntax.

However, I will need to try and make changes to the DXL. The resulting graph uses labels on the joining lines to represent which Link Module is used. Albert, in answer to your question, we have been very strict in using Link Modules to corral links in an organised way (I learned that on a training course). The way the DXL works now, the labels are repeated on every line, which gives rise to a very complex and repetitive graph. I agree it is best to analyse what Linksets are set up, rather than analyse the actual links.

See the attached for a fake example of what is being shown now. The labels are repeated. I will reply to this post with another example - only one attachment possible on this forum, sadly.
Attachments

attachment_14893100_DXL_GraphViz_Example_1.png

Re: Generating GraphViz DOT Script in DXL
SystemAdmin - Tue Oct 02 12:47:46 EDT 2012

SystemAdmin - Tue Oct 02 12:33:15 EDT 2012
Peter,
Thank you for your informative reply!

I have DOORS running on a Windows Server 2008 machine, so the paths are different. I couldn't find a Temp folder anywhere. The reason we're running it like this is because it's the only way to allow people in different offices to access the system. The database won't work over a WAN, only over a LAN, so my colleagues in different offices have to log in via Remote Desktop Access. That's a different thread though...

Anyway, I set the path to a specific location as you suggest, escaping the backslashes, and it works fine. It generates a nice GV file, which renders to a very complex digraph!

It turns out that the DXL output window does not show all the content that goes into the saved file. The saved GV file contains all the correct syntax.

However, I will need to try and make changes to the DXL. The resulting graph uses labels on the joining lines to represent which Link Module is used. Albert, in answer to your question, we have been very strict in using Link Modules to corral links in an organised way (I learned that on a training course). The way the DXL works now, the labels are repeated on every line, which gives rise to a very complex and repetitive graph. I agree it is best to analyse what Linksets are set up, rather than analyse the actual links.

See the attached for a fake example of what is being shown now. The labels are repeated. I will reply to this post with another example - only one attachment possible on this forum, sadly.

(with regards to the previous example, I set it up so that the lines and text were a little more nicely formatted and colored)

Attached is a another example, with Link Modules shown as boxes. This diagram contains the same information as the first example, but I think it shows the relationships a bit clearer.

I also used the "subgraph cluster..." command to show the modules in folders.

What would I need to change in the code posted by Alain to make it work like this? I think we're on the brink of something really good!

I can post the GV file of DOT code for these examples if people are interested.
Attachments

attachment_14893107_DXL_GraphViz_Example_2.png

Re: Generating GraphViz DOT Script in DXL
kabr - Thu Apr 25 03:32:21 EDT 2013

SystemAdmin - Fri Jun 29 10:33:33 EDT 2012
A link to my website, where you can download my spin on doors with graphviz. The website is driving me around the bend, but the downloads should work ok!
http://www.chalford.net/Downloads.aspx

Richard,

I just downloaded your linkset viewer, but it refuses to install with my DOORS V9.4 although it says that it's looking for DOORS 9.2 or higher.

Do you maybe have an updated version available?

Thanks

Karl

Re: Generating GraphViz DOT Script in DXL
Richard_Good - Thu Apr 25 08:33:48 EDT 2013

kabr - Thu Apr 25 03:32:21 EDT 2013

Richard,

I just downloaded your linkset viewer, but it refuses to install with my DOORS V9.4 although it says that it's looking for DOORS 9.2 or higher.

Do you maybe have an updated version available?

Thanks

Karl

I should remove the registry check and just give a warning (it won't work with pre version 9) It does try and check for 9.4 and 9.5, obviously something unexpected has happend with the registry settings maybe IBM use a differrent key or I have introduced a typo into the script. I do not have 9.4 and 9.5 to play with at the moment. You can probably trick the install by installing the wrappered msi direct, maing sure that the dxl references the encrypted inc files correctly and making sure that the dot.exe is in the path (this will be in the bin folder of graphviz). I will try and tweak this on the weekend, if I get 5 mins.

Richard

Re: Generating GraphViz DOT Script in DXL
Wolfgang Uhr - Thu Apr 25 12:03:40 EDT 2013

kabr - Thu Apr 25 03:32:21 EDT 2013

Richard,

I just downloaded your linkset viewer, but it refuses to install with my DOORS V9.4 although it says that it's looking for DOORS 9.2 or higher.

Do you maybe have an updated version available?

Thanks

Karl

It is not a problem to create a grafik using those tools. I'm using the dxl-edtor in eclipse and doxygen (and some other tools) to create a documentation.

 

* @startuml{TheCancelledObject.png}
* skin BlueModern
*
* ClearQuest -->> CSVFile: Nightly Upgrade
* activate ClearQuest
* activate CSVFile
* deactivate ClearQuest
* alt object is not canceled and not replaced
* CSVFile -->> CSVModule:
* activate CSVModule
* else object is canceled or replaced
* CSVFile -->> CanceledReplacedModule:
* activate CanceledReplacedModule
* end
* deactivate CanceledReplacedModule
* deactivate CSVFile
* CSVModule -->> GearOverviewList: MapSwaRelatedObject()
* @enduml

And then you get the following picture:

 


Attachments

TheCancelledObject.png

Re: Generating GraphViz DOT Script in DXL
Richard_Good - Sat Apr 27 09:51:53 EDT 2013

Richard_Good - Thu Apr 25 08:33:48 EDT 2013

I should remove the registry check and just give a warning (it won't work with pre version 9) It does try and check for 9.4 and 9.5, obviously something unexpected has happend with the registry settings maybe IBM use a differrent key or I have introduced a typo into the script. I do not have 9.4 and 9.5 to play with at the moment. You can probably trick the install by installing the wrappered msi direct, maing sure that the dxl references the encrypted inc files correctly and making sure that the dot.exe is in the path (this will be in the bin folder of graphviz). I will try and tweak this on the weekend, if I get 5 mins.

Richard

Looks like I was having a bit of an issue with 64 bit operating systems not windows 7 - I need to know where the doors executable is to create the shortcut to the Linkset Viewer (I do this by looking in the registry), many users even some of those who float around here cannot create their own personal menus so it is desirable. Note I have no means of testing the update at the moment, but am about 80% certain it works.

Download the tool again from http://www.chalford.net/Downloads.aspx#Linkset_Viewer to see if the issue is sorted. Please let me know if it's not and I'll have another go one weekend.

Note that I have added an SVG option (clicking on the nodes will open the modules in DOORS), this option will work with all browsers except Internet Explorer (IE9 might work, earlier versions won't)

Visualisations of links (between objects and modules) is one of DOORS major weak points, I had until I got distracted by other projects a nearly complete visualisation tool of this sort, no real interest a couple of years ago so I never pursued it. If anyone is interested I could maybe resuscitate it.

Richard

 

Re: Generating GraphViz DOT Script in DXL
kabr - Tue Apr 30 03:41:06 EDT 2013

Richard_Good - Sat Apr 27 09:51:53 EDT 2013

Looks like I was having a bit of an issue with 64 bit operating systems not windows 7 - I need to know where the doors executable is to create the shortcut to the Linkset Viewer (I do this by looking in the registry), many users even some of those who float around here cannot create their own personal menus so it is desirable. Note I have no means of testing the update at the moment, but am about 80% certain it works.

Download the tool again from http://www.chalford.net/Downloads.aspx#Linkset_Viewer to see if the issue is sorted. Please let me know if it's not and I'll have another go one weekend.

Note that I have added an SVG option (clicking on the nodes will open the modules in DOORS), this option will work with all browsers except Internet Explorer (IE9 might work, earlier versions won't)

Visualisations of links (between objects and modules) is one of DOORS major weak points, I had until I got distracted by other projects a nearly complete visualisation tool of this sort, no real interest a couple of years ago so I never pursued it. If anyone is interested I could maybe resuscitate it.

Richard

 

Same problem. Trying to run the installer I get:

"This utility requires DOORS 9-2 or higher. DOORS 9-2 was not found on your system"

 

Karl

Re: Generating GraphViz DOT Script in DXL
Richard_Good - Tue Apr 30 05:01:23 EDT 2013

kabr - Tue Apr 30 03:41:06 EDT 2013

Same problem. Trying to run the installer I get:

"This utility requires DOORS 9-2 or higher. DOORS 9-2 was not found on your system"

 

Karl

Hi Karl,

The error message seems relevant to an older version of this tool, are you sure you downloaded the updated one successfully?

I check the following keys for a doors installation

HKEY_LOCAL_MACHINE\SOFTWARE\Telelogic\DOORS\

and

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Telelogic\DOORS\

Please confirm you have a

9.4\ExecutablesDirectory registry key in one of the two areas.

IBM do not write to the current version area of the registry, at least thats what I remember

Probably best to send me a private message to richard@chalford.net

Kind of surprised this didn't work, just tried it on a windows 7 machine and it worked, but bizarrely the HKEY_LOCAL_MACHINE\SOFTWARE\Telelogic\DOORS\ key not the Wow6432Node one is used by DOORS even though it was a 64 bit Windows 7 machine (don't have DOORS 9.3, 9.4 or 9.5 to test).

Regards, 

Richard

Re: Generating GraphViz DOT Script in DXL
ChrisHardy68 - Wed May 29 19:44:47 EDT 2013

Hi

(Full disclosure I work for IBM Rational)

I had not looked at GraphWiz but I've been playing with the idea of getting the structure info out of DOORS and into Rational System Architect(SA)  so i could visualise and report on the DOORS structure - this was for my own learning exercise.

Attached is a bit of DXl franken-code which I built - its not very nice or robust and it can take hours to run - don't even other to run it on a machine with anything less then 6Gb ram .

It produces a bunch of csv file which can then be sucked into SA using the provided usrprops.

I'm not suggesting that this is an alternative to GraphWiz just an option - but thought  I would post the code in case its of any use to someone

 

 


Attachments

DOORS IA.zip